package com.aaa.orderservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/3 16:01
 * @ClassName : OrderAApplication
 * @Description :
 * @Package_Name : com.aaa.orderservice
 */
@SpringBootApplication
@MapperScan("com.aaa.orderservice.mapper")
@EnableEurekaClient //开启Eureka客户端 该注解只对注册中心是Eureka有效
//@EnableDiscoveryClient  //开启发现客户端  该注解对任意注册中心有效
@EnableTransactionManagement  //开启事务管理
public class OrderBApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderBApplication.class, args);
    }
}
